package com.zut.fitness.service.impl;


import com.zut.fitness.pojo.vo.CoachImageVo;
import com.zut.fitness.service.IFitnessCoachService;
import com.zut.fitness.mapper.FitnessCoachMapper;
import com.zut.fitness.pojo.FitnessCoach;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 教练列表Service业务层处理
 * 
 * @author admin
 * @date 2025-01-04
 */
@Service
public class FitnessCoachServiceImpl implements IFitnessCoachService
{
    @Autowired
    private FitnessCoachMapper fitnessCoachMapper;

    /**
     * 查询教练列表
     * 
     * @param id 教练列表主键
     * @return 教练列表
     */
    @Override
    public FitnessCoach selectFitnessCoachById(Long id)
    {
        return fitnessCoachMapper.selectFitnessCoachById(id);
    }

    /**
     * 查询教练列表列表
     * 

     * @return 教练列表
     */
    @Override
    public List<CoachImageVo> selectFitnessCoachList()
    {
        return fitnessCoachMapper.selectCoachImage();
    }


}
